﻿using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ymca.DataAccess;
using Ymca.DataAccess.Interfaces;
using Ymca.Entities;
using Ymca.Web.Services.Interfaces;

namespace Ymca.Web.Services
{
	public class AttachmentService: IAttachmentService
	{
		private IDataContext _dataContext;

		public AttachmentService()
		{
			_dataContext = new DataContext();
		}

		public GalleryItem Get(int id)
		{
			return _dataContext.GalleryItems.Find(id);
		}
	}
}